// pages/detail/detail.js

const app = getApp();
const api = require('../../config/config.js');

Page({

    /**
     * 页面的初始数据
     */
    data: {
        info: {},           
        bind:{},
    },
    /**
     * 生命周期函数--监听页面加载
     */
    onLoad: function(options) {
        let that=this;
            let userInfo=wx.getStorageSync('userInfo');
            app.post('bind&op=roominfo',{memberid:userInfo.id},function(rel){
                    let data=rel.data;
                    that.setData({info:data,bind:data.bind});
            });
    },
    /**
     * 生命周期函数--监听页面显示
     */
    onShow: function() {
    }
});